
<!DOCTYPE html>
<html>
<head>
<meta name="renderer" content="webkit|ie-comp|ie-stand">
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title></title>

<link rel="stylesheet" type="text/css" href="theme/layui/css/layui.css">
<link rel="stylesheet" type="text/css" href="theme/default/css/common.css">
<script src="theme/default/Js/Common.js"></script>
<script src="theme/default/Js/jquery-3.0.0.min.js"></script>
<script src="theme/default/js/artDialog.js?skin=blue"></script>
<link rel="stylesheet" type="text/css" href="include/webupload/webuploader.css">
<script src="include/webupload/webuploader.min.js"></script> 
<script src="include/webupload/uploads.js"></script>
<link rel='stylesheet' type="text/css" href='theme/desktop/css/font-awesome.min.css'>

</head>
<body>

<script>
	function CheckInput(){
		if(document.getElementById('pBigClass').value == ""){art.dialog({title: 'Error',time: 1,icon: 'warning',content: '商品大类 不能为空!'});document.getElementById('pBigClass').focus();return false;}
		if(document.getElementById('Strade').value == ""){art.dialog({title: 'Error',time: 1,icon: 'warning',content: '商品小类 不能为空!'});document.getElementById('Strade').focus();return false;}
		if(document.getElementById('pTitle').value == ""){art.dialog({title: 'Error',time: 1,icon: 'warning',content: '产品名 不能为空!'});document.getElementById('pTitle').focus();return false;}
		if(document.getElementById('pshoujia').value == ""){art.dialog({title: 'Error',time: 1,icon: 'warning',content: '价格 不能为空!'});document.getElementById('pshoujia').focus();return false;}
	}
	</script>
<style>
body{overflow-y:hidden}
</style>
<!----------------------------------------添加产品开始----------------------------------------> 
<!----------------------------------------添加产品开始---------------------------------------->
<script>
<!-- 必填项提示
function CheckInput()
{
	if(document.all.pTitle.value == ""){art.dialog({title: 'Error',time: 1,icon: 'warning',content: '商品名称不能为空'});document.all.pTitle.focus();return false;}
	if(document.all.pshoujia.value == ""){art.dialog({title: 'Error',time: 1,icon: 'warning',content: '商品售价不能为空'});document.all.pshoujia.focus();return false;}
}
-->
</script>
<div class="cssout">
  <form class="layui-form" name="save" action="goodssave.asp?action=Proclass&stype=saveInfoadd&LaiLu=" method="post" onSubmit="return CheckInput();">
    <script src="theme/default/Js/Common.js"></script>
    <div class="cssin">
      <ul>
        <li class="w100 bg"><dd class="isin"><B>添加产品</B></dd></li>
        <li class="w25 bg cl tr"><dd class="isin">产品分类</dd></li>
        <li class="w75"><dd class="isin">
          <select name="pBigClass" class="bor int" onChange="getTrade(this.options[this.selectedIndex].id);">
            <option value="">请选择</option>
            
            <option value="产品大分类" id="1">产品大分类</option>
            
          </select>
          <span id="Stradediv"  style="margin-left:10px;padding:0;">
          <select name="Strades" class="bor int">
            <option value="">未选择大类</option>
          </select>
          </span>
          <input name="Strade" type="hidden" id="Strade" class="bor int"></dd></li>
        <li class="w25 bg cl tr"><dd class="isin">产品名称</dd></li>
        <li class="w75"><dd class="isin">
          <input name="pTitle" type="text" id="pTitle" class="bor int" size="40" /></dd></li>
        
        <li class="w25 bg cl tr"><dd class="isin">
          规格</dd></li>
        <li class="w75"><dd class="isin">
          <input name="pguige" type="text" id="pguige" class="bor int" size="20" /></dd></li>
        
        <li class="w25 bg cl tr"><dd class="isin">
          型号</dd></li>
        <li class="w75"><dd class="isin">
          <input name="pxinghao" type="text" id="pxinghao" class="bor int" size="20" /></dd></li>
        
        <li class="w25 bg cl tr"><dd class="isin">
        商品库存</dd></li>
        <li class="w75"><dd class="isin">
          <input name="pkucunnow" type="text" id="pkucunnow" class="bor int" size="20" value="0" onfocus="if (value =='0'){value =''}" onblur="if (value ==''){value='0'}" />
          当商品存库低于
          <input name="pkucunbz" type="text" class="bor int" id="pkucunbz" value="10" size="10" onfocus="if (value =='10'){value =''}" onblur="if (value ==''){value='10'}" />
          时告警!</li>
        <li class="w25 bg cl tr"><dd class="isin">
        成本单价</dd></li>
        <li class="w75"><dd class="isin">
          <input name="pchengben" type="text" id="pchengben" class="bor int" size="20" />
          元</li>
        <li class="w25 bg cl tr"><dd class="isin">
        销售单价</dd></li>
        <li class="w75"><dd class="isin">
          <input name="pshoujia" type="text" id="pshoujia" class="bor int" size="20" />
          元</li>
          
          <li class="w25 duohang bg cl tr">商品备注</dd></li>
        <li class="w75 duohang"><dd class="isin">
          <textarea name="beizhu" rows="4" class="bor int" id="beizhu" style="height:65px;width:98%;"></textarea></dd></li>
          <div class="clear"></div>
      </ul>
    </div>
    <div class="h50b"></div>
    <div class="fixed_bg_B">
      <input type="submit" name="Submit" class="btn2 btnbaoc" value="保存">
      <input name="Back" type="button" id="Back" class="btn2 btnguanb" value="关闭" onClick="art.dialog.close();guanbi();">
    </div>
  </form>
</div>

<script src="theme/default/WdatePicker.js"></script> 
<script src="theme/layui/layui.js"></script> 
<script src="theme/desktop/js/common.js"></script>

<script>
/*弹出窗口封装代码*/
$(".open-app").on("click",function(){
	var width = $(this).data("width")?$(this).data("width"):900,//获得宽度
	height = $(this).data("height")?$(this).data("height"):400//获得高度
	url = $(this).attr("href")//获得打开URL
	title = $(this).attr("title");//获得标题	
	$.dialog.open(url, {title: title, width:width,height:height, fixed: true});
	return false;	
})
</script>

</body>
</html>
